package com.pan.kang.frame.context;


import com.pan.kang.frame.model.StoreProcedureResult;
import com.pan.kang.frame.role.IStoreProcedureQueryRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class StoreProcedureQueryContext implements IStoreProcedureQueryContext {

    @Autowired
    private IStoreProcedureQueryRole storeProcedureQueryRole;

    @Override
    public <VO> StoreProcedureResult<VO> findListByStoreProcedure(String procedureName, Class<VO> clazz,
                                                                  Map<String, Object> mapIn, Map<String, Object> mapOut) {
        return storeProcedureQueryRole.findListByStoreProcedure(procedureName, clazz, mapIn, mapOut);
    }
}
